package Jasper.entity;

/**
 * @ClassName Product
 * @Author jiangjiajia
 * @JDK-Version 1.8
 * @Date 2021/6/1 10:05 pm
 * @Version 1.0
 * @Description 产品类
 **/
public class Product {
    private int pro_id;
    private int class_id;
    private String name;
    private double price;
    private String imgUrl;
    private String detail;
    private int stock;
    private int status;


    public Product() {
    }

    public Product(int pro_id, String name, double price) {
        this.pro_id = pro_id;
        this.name = name;
        this.price = price;
    }

    public Product(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public Product(int class_id, String name, double price, String imgUrl, String detail, int stock, int status) {
        this.class_id = class_id;
        this.name = name;
        this.price = price;
        this.imgUrl = imgUrl;
        this.detail = detail;
        this.stock = stock;
        this.status = status;
    }


    public int getPro_id() {
        return pro_id;
    }

    public void setPro_id(int pro_id) {
        this.pro_id = pro_id;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pro_id=" + pro_id +
                ", class_id=" + class_id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", status=" + status +
                ", imgUrl='" + imgUrl + '\'' +
                ", detail='" + detail + '\'' +
                '}';
    }
}
